#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "LightSensor.h"
#include "Buzzer.h"
#include "LED.h"

uint8_t KeyNum;

int main()
{
	/*模块初始化*/
	LightSensor_Init();
	Buzzer_Init();

	
	while(1)
	{
		if ( LightSensor_Get() == 1 )	//低亮度打开蜂鸣器
		{
			Buzzer_ON();
		
		}
		else							//高亮度关闭蜂鸣器
		{
			Buzzer_OFF();
			
		}
	}
}
